﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace BudgetManager.Domain
{
    public class Goal
    {
        public Category Category {get;set;}
        public String Description { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public double Alert { get; set; }

        public String FormatAlert { get { return Math.Round(Alert).ToString(); } }
        public String FormatStartDate { get { return String.Format("{0}-{1}-{2}", EndDate.Year, EndDate.Month, EndDate.Day); } }
        public String FormatEndDate { get { return String.Format("{0}-{1}-{2}", EndDate.Year, EndDate.Month, EndDate.Day); } }
    }
}
